import time
from selenium import webdriver

dr = webdriver.Chrome()
# 第一次访问
# dr.get("https://demo.fastadmin.net/admin.php/index/login")
dr.get("https://demo.ruoyi.vip/index")
dr.maximize_window()
time.sleep(3)
# 加入cookie
# dr.add_cookie({"name":"PHPSESSID","value":"5unt74i0t2avn7e7jcsnfenr65"})
dr.add_cookie({"name":"JSESSIONID","value":"432f2e6a-36c1-48e2-882d-215bf449d5bb"})
# 二次访问
dr.refresh()
time.sleep(5)
dr.quit()